package com.DHH.Entity.Order;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类OrderInfoStateRecord
 * 数据表order_tb_info_state_record
 * 订单状态记录
 * 2017-8-3 12:33:07
 * @author Administrator
 *
 */
@Table(name = "order_tb_info_state_record")
public class OrderInfoStateRecord  implements Serializable {

	//
	@Id
	@GeneratedValue(generator = "JDBC")
	private Integer id;
	//
	private Integer orderId;
	//
	private Integer stateId;
	//
	@Length(max = 16, min = 0, message = "长度为0-16个字符")
	private String msg;
	//

	private Date createTime;
	//
	@Length(max = 16, min = 0, message = "长度为0-16个字符")
	private String lat;
	//
	@Length(max = 16, min = 0, message = "长度为0-16个字符")
	private String lng;
	@Transient
	private OrderInfoState orderInfoState;

	public OrderInfoStateRecord(){

	}

	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setOrderId(Integer orderId){
		this.orderId=orderId;
	}

	public Integer getOrderId(){
		return this.orderId;
	}
	public void setStateId(Integer stateId){
		this.stateId=stateId;
	}

	public Integer getStateId(){
		return this.stateId;
	}
	public void setMsg(String msg){
		this.msg=msg;
	}

	public String getMsg(){
		return this.msg;
	}

	public void setLat(String lat){
		this.lat=lat;
	}

	public String getLat(){
		return this.lat;
	}
	public void setLng(String lng){
		this.lng=lng;
	}

	public String getLng(){
		return this.lng;
	}

	public OrderInfoState getOrderInfoState() {
		return orderInfoState;
	}

	public void setOrderInfoState(OrderInfoState orderInfoState) {
		this.orderInfoState = orderInfoState;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
